{%include file="header.html"%}
<style>
table{text-align: center;}
th a{ color:#000000;}
</style>
<body>
  <div class="fixed-bar">
    <div class="item-title">
      <h3>发货单列表</h3>
      <form action="order.php" name="searchForm" method="get">
        <input type="hidden" name="act" value="delivery_list">
        发货单流水号
        <input type="text" name="delivery_sn" value="{%$delivery_sn%}"style="height:18px">
        <!-- 订单编号 -->
        订单编号
        <input type="text" name="order_sn" value="{%$order_sn%}"style="height:18px">
        <!-- 收货人 -->
        收货人
        <input type="text" name="consignee" value="{%$consignee%}"style="height:18px">
        订单状态
        <select name="zt">
          <option value="0"{%if $zt=='0'%}selected="selected"{%/if%}>请选择</option>
          <option value="3"{%if $zt=='3'%}selected="selected"{%/if%}>已发货</option>
          <option value="1"{%if $zt=='1'%}selected="selected"{%/if%}>退货</option>
          <option value="2"{%if $zt=='2'%}selected="selected"{%/if%}>正常</option>
        </select>
        <input value=" 搜索 " id="but_sousuo" style="width:50px; height:27px; margin-top:13px;" class="button" type="submit"> 
      </form>
    </div>
  </div>
  <div class="fixed_bottom">
    <form method="post" action="" id="aspnetForm" name="form1">
      <table align="center;" class="table tb-type2">
        <thead>
          <tr>
            <th><a>发货单流水号</a></th>
            <th><a>订单编号</a></th>
            <th><a>下单时间</a></th>
            <th><a>收货人</a></th>
            <th><a>发货时间</a></th>
            <th><a>订单状态</a></th>
            <th><a>操作人</a></th>
            <th><a>操作</a></th>
          </tr>
        </thead>
        <tbody id="sortable">
          {%foreach from=$delivery_list item=list key=k%}
            <tr>
              <td>{%$list.delivery_sn%}</td>
              <td>{%$list.order_sn%}</td>
              <td>
              <span>{%$list.add_time|date_format:'%Y-%m-%d %H:%M:%I'%}</span>
              </td>
              <td>{%$list.consignee%}</td>
              <td>
              <span>{%$list.update_time|date_format:'%Y-%m-%d %H:%M:%I'%}</span>
              </td>
              <td>{%if $list.status==1%}退货
              {%elseif $list.status==2 %}正常
              {%elseif $list.status==3 %}已发货
              {%/if%}</td>
              <td>
              {%$list.action_user%}
              </td>
              <td>
                <a href="order.php?act=delivery_edit&delivery_id={%$list.delivery_id%}">查看</a>
              </td>
            </tr>
          {%/foreach%}
        </table>
      <div class="page">{%$page%}</div>
    </form>
  </div>
</body>
</html>